From 27c21249b77b10e73fa0fb28e06c9917aa668200 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 7 Jan 2012 21:44:52 -0500 Subject: [PATCH] Add session management migration chapter Add some preliminary information about migration from EggSMClient to GtkApplication. --- docs/reference/gtk/Makefile.am | 6 ++- docs/reference/gtk/gtk-docs.sgml | 3 +- .../gtk/migrating-smclient-GtkApplication.xml | 49 +++++++++++++++++++ ...ml => migrating-unique-GtkApplication.xml} | 2 +- 4 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 docs/reference/gtk/migrating-smclient-GtkApplication.xml rename docs/reference/gtk/{migrating-GtkApplication.xml => migrating-unique-GtkApplication.xml} (98%) diff --git a/docs/reference/gtk/Makefile.am b/docs/reference/gtk/Makefile.am index d0d19e6c4c..54f3c7a33d 100644 --- a/docs/reference/gtk/Makefile.am +++ b/docs/reference/gtk/Makefile.am @@ -123,7 +123,8 @@ content_files = \ glossary.xml \ migrating-2to3.xml \ migrating-checklist.sgml \ - migrating-GtkApplication.xml \ + migrating-unique-GtkApplication.xml \ + migrating-smclient-GtkApplication.xml \ migrating-GtkGrid.xml \ migrating-GtkStyleContext.xml \ objects_grouped.sgml \ @@ -146,7 +147,8 @@ expand_content_files = \ glossary.xml \ migrating-2to3.xml \ migrating-checklist.sgml \ - migrating-GtkApplication.xml \ + migrating-unique-GtkApplication.xml \ + migrating-smclient-GtkApplication.xml \ migrating-GtkGrid.xml \ migrating-GtkStyleContext.xml \ question_index.sgml \ diff --git a/docs/reference/gtk/gtk-docs.sgml b/docs/reference/gtk/gtk-docs.sgml index baf190578b..9be29d7de0 100644 --- a/docs/reference/gtk/gtk-docs.sgml +++ b/docs/reference/gtk/gtk-docs.sgml @@ -357,7 +357,8 @@ - + + diff --git a/docs/reference/gtk/migrating-smclient-GtkApplication.xml b/docs/reference/gtk/migrating-smclient-GtkApplication.xml new file mode 100644 index 0000000000..58cae9a1b8 --- /dev/null +++ b/docs/reference/gtk/migrating-smclient-GtkApplication.xml @@ -0,0 +1,49 @@ + + + + + Migrating from EggSMClient to GtkApplication + + + EggSMClient provides 'session management' support for applications. + This means a number of things: + + logout notification and negotiation + application state saving + restarting of applications with saved state + + EggSMClient supports this functionality to varying degrees on + Windows and OS X, as well as with XSMP and D-Bus based session + managers in X11. + + + + Starting with GTK+ 3.4, #GtkApplication supports logout notification + and negotiation in the same way as EggSMClient, using the same + basic API: + + + + EggSMClient to GtkApplication + + EggSMClientGtkApplication + + + EggSMClient::quit-requested#GtkApplication::quit-requested + EggSMClient::quit#GtkApplication::quit + EggSMClient::quit-cancelled#GtkApplication::quit-cancelled + egg_sm_client_will_quitgtk_application_quit_response() + egg_sm_client_end_sessiongtk_application_end_session() + + +
+ + + At this point, GtkApplication has no special support for state saving. + Applications can use GSettings or GKeyFile and save as much state as + they see fit in response to #GtkApplication::quit or whenever they + consider appropriate. + +
diff --git a/docs/reference/gtk/migrating-GtkApplication.xml b/docs/reference/gtk/migrating-unique-GtkApplication.xml similarity index 98% rename from docs/reference/gtk/migrating-GtkApplication.xml rename to docs/reference/gtk/migrating-unique-GtkApplication.xml index a53f165d55..aaa6645fbc 100644 --- a/docs/reference/gtk/migrating-GtkApplication.xml +++ b/docs/reference/gtk/migrating-unique-GtkApplication.xml @@ -2,7 +2,7 @@ - + Migrating from libunique to GApplication or GtkApplication -- 2.30.2